<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>日志管理页面</title>
<!-- 项目基准路径 -->
<base href="/bestinc/" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- 引入layUI的css -->
<link rel="stylesheet" href="static/lib/layui/css/layui.css" media="all">
<link rel="stylesheet" href="static/css/util.css" />
<script src="static/js/jquery.min.js" charset="utf-8"></script>
<!-- 引入layUI的js -->
<script src="static/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="static/js/system/log/log.js"
	charset="utf-8"></script>
</head>
<body>
	<div id="content">
		<!-- 头部搜索框 -->
		<div id="search-header">
			<form class="layui-form">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">操作日期</label>
						<div class="layui-input-inline">
							<input id="operateTime" type="text" name="operateTime"
								placeholder="请选择日期范围" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">操作人名</label>
						<div class="layui-input-inline">
							<input id="userName" type="text" name="userName"
								placeholder="请输入用户名字" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">操作事件</label>
						<div class="layui-input-inline">
							<input id="operateEvent" type="text" name="operateEvent"
								placeholder="请输入" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-inline">
						<label class="layui-form-label">操作结果</label>
						<div class="layui-input-inline">
							<select id="operateResult" name="operateResult">
								<option value=""></option>
								<option value="N">失败</option>
								<option value="Y">成功</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label"></label>
						<div class="layui-input-inline">
							<button id="search" class="layui-btn" lay-submit=""
								lay-filter="logSearchBtn">
								<i class="layui-icon layui-icon-search"></i> 查询
							</button>
							<button class="layui-btn" type="reset">
								<i class="layui-icon layui-icon-refresh"></i> 重置
							</button>
						</div>
					</div>
				</div>
			</form>
		</div>

		<div id="dataTable">
			<!-- 日志数据表格 -->
			<table class="layui-hide" id="logTable" lay-filter="logTableEvent">

			</table>
		</div>



		<!-- 头部工具栏 -->
		<script type="text/html" id="logToolbar">
		<div class="layui-btn-group">
			<button lay-event="updateRecord" class="layui-btn layui-btn-primary layui-btn-sm" title="导出"><i class="layui-icon">&#xe642</i>导出 </button>
			<button lay-event="frozenRecord" class="layui-btn layui-btn-primary layui-btn-sm" title="归档 "><i class="layui-icon">&#xe640;</i>归档 </button>
		</div>
		</script>
		<!-- 状态 -->
		<script type="text/html" id="checkboxTpl">
			<span {{d.operateResult=='Y'? 'class="useable font-color font-size my-bg-green"': 'class="useable font-color font-size my-bg-red"'}}>{{d.operateResult=='Y'?'成功':'失败'}}</span>
		</script>
		<!-- 操作类型 -->
		<script type="text/html" id="typeboxTpl">
			<span class="useable font-color font-size" style="background-color: {{#  if(d.operateType === '添加'){ }}
    				#58C65FB8
  				{{#  } else if(d.operateType === '修改') { }}
   			 		#F7A65EB8
 				{{#  } else if(d.operateType === '状态修改') { }}
					#D23F3FB8
				{{#  } else if(d.operateType === '登录') { }}
					#4B89AEB8
				{{#  } else { }}
					my-bg-red
				{{#  } }};">
				{{d.operateType}}
			</span>
		</script>
		
		
		<!-- 工具栏列 -->
		<script type="text/html" id="archivesBar">
  			<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail" {{d.classification=='N'?'':'style="display: none;"'}}>查看</a>
	</script>
	</div>
</body>
</html>